import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from "pinia";
import {createPersistedState} from "pinia-plugin-persistedstate";
import ElementPlus from 'element-plus'
import router from "@/routers/index.js";
const pinia = createPinia()
// 配置状态存储使用SessionStorage
const ps = createPersistedState({storage:sessionStorage})
pinia.use(ps)
createApp(App)
    .use(router)
    .use(ElementPlus)
    .use(pinia)
    .mount('#app')
